package com.hsxc.cdz.trans.bill;

import com.hsxc.cdz.monitor.FSM.CachePile;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author 作者: 陈钊
 * @version 创建时间：2016年6月24日 上午10:40:22 类说明 ：该类为内存中的交易
 */
public class CacheTrade {

    private Logger logger = LoggerFactory.getLogger(CacheTrade.class);
    public static final int NOT_RESERVED = 1;//非预约
    public static final int IS_RESERVED = 2;//预约

    public enum TradeStatus {
        TRADE_STATUS_NOPAY, TRADE_STATUS_ON, TRADE_STATUS_READY, Trade_STATUS_FAIL,
    }

    private CachePile cachePile;
    private String pileNo;
    private String tid;
    private String startTime;
    private String stopTime;
    // private String regName;
    private TradeStatus tradeStatus;
    private double chargeFee;
    private double chargeDegree;
    private String userNo;
    private String openId;
    private int type;// 支付方式 1-微信公众号 2-IC卡 3-现金4app微信支付 5-支付宝
    private int isReserv;// 是否预约
    private String reservNo;//预约编号
    private int chargePort = 0;

    public String getReservNo() {
        return reservNo;
    }

    public void setReservNo(String reservNo) {
        this.reservNo = reservNo;
    }

    public int getIsReserv() {
        return isReserv;
    }

    public void setIsReserv(int isReserv) {
        this.isReserv = isReserv;
    }

    public String getPileNo() {
        return pileNo;
    }

    public void setPileNo(String pileNo) {
        this.pileNo = pileNo;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getStopTime() {
        return stopTime;
    }

    public void setStopTime(String stopTime) {
        this.stopTime = stopTime;
    }

    public CachePile getCachePile() {
        return cachePile;
    }

    public void setCachePile(CachePile cachePile) {
        this.cachePile = cachePile;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public TradeStatus getTradeStatus() {
        return tradeStatus;
    }

    public void setTradeStatus(TradeStatus tradeStatus) {
        this.tradeStatus = tradeStatus;
    }

    public double getChargeFee() {
        return chargeFee;
    }

    public void setChargeFee(double chargeFee) {
        this.chargeFee = chargeFee;
    }

    public double getChargeDegree() {
        return chargeDegree;
    }

    public void setChargeDegree(double chargeDegree) {
        this.chargeDegree = chargeDegree;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getChargePort() {
        return chargePort;
    }

    public void setChargePort(int chargePort) {
        this.chargePort = chargePort;
    }

    public CacheTrade(CachePile cachePile, String tid, TradeStatus tradeStatus) {
        super();
        this.cachePile = cachePile;
        this.tid = tid;
        this.tradeStatus = tradeStatus;
    }

    public CacheTrade() {
        super();
    }

    @Override
    public String toString() {
        // TODO Auto-generated method stub
        return "CacheTrade[" + "tid = " + getTid() + "userNo = " + getUserNo() + "pileNo = " + getPileNo() + "]";
    }

}
